var staffModule=new Object({
    //加载员工信息
    loadStaff : function (){
                    $.ajax({
                        url : '/front/queryStaffByNomal',
                        type : 'post',
                        dataType : 'json'
                    }).done(function(data){
                        if(data){
                            $('#fh5co-staff .person').empty();
                            for(var i=0;i<data.length;i++){
                                var divHtml='<div class="col-md-3 animate-box text-center fadeInUp animated-fast">'+
                                    '<div class="staff">'+
                                    '<div class="staff-img" style="background-image: url('+data[i].picture+');">'+
                                    '<ul class="fh5co-social">'+
                                    '<li><a href="#"><i class="icon-facebook2"></i></a></li>'+
                                    '<li><a href="#"><i class="icon-twitter2"></i></a></li>'+
                                    '<li><a href="#"><i class="icon-dribbble2"></i></a></li>'+
                                    '<li><a href="#"><i class="icon-github"></i></a></li>'+
                                    '</ul>'+
                                    '</div>'+
                                    '<span>'+data[i].position+'</span>'+
                                    '<h3><a href="#">'+data[i].name+'</a></h3>'+
                                    '<p>'+data[i].description+'</p>'+
                                    '</div>'+
                                    '</div>';
                                $('#fh5co-staff .person').append(divHtml);
                            }

                        }
                    })
                },
    //加载首页员工
    loadStafffByIndex : function () {
                        $.ajax({
                            url: '/back/queryAllStaffByPage',
                            type: 'post',
                            dataType: 'json'
                        }).done(function (data) {
                            if (data) {
                                $('.owl-carousel-fullwidth').empty();
                                //$('.owl-carousel-fullwidth .owl-dots').empty();
                                for (var i = 0; i < data.length; i++) {
                                    //<div class="owl-item cloned" style="width: 975px; margin-right: 0px;">
                                    var item = '' +
                                        '<div class="item">' +
                                        '<div class="testimony-slide text-center">' +
                                        '<div class="user" style="background-image: url(' + data[i].picture + ');"></div>' +
                                        '<span>' + data[i].name + '<br><small>' + data[i].position + '</small></span>' +
                                        '<blockquote>' +
                                        '<p>' + data[i].description + '</p>' +
                                        '</blockquote>' +
                                        '</div>' +
                                        //'</div>'+
                                        '</div>';
                                    $('.owl-carousel-fullwidth').append(item);
                                    //var owl_dot='<div class="owl-dot"><span></span></div>';
                                    //$('.owl-carousel-fullwidth .owl-dots').append(owl_dot);
                                    if (i == 0) {
                                        //    $('.owl-carousel-fullwidth .owl-dots .owl-dot').addClass('active');
                                        $('.owl-carousel-fullwidth .item .testimony-slide').addClass('active');
                                    }
                                }
                                var owl = $('.owl-carousel-fullwidth');
                                owl.owlCarousel({
                                    items: 1,
                                    loop: true,
                                    autoplay: true,
                                    margin: 0,
                                    nav: false,
                                    dots: true,
                                    smartSpeed: 800,
                                    autoHeight: true
                                });

                            }
                        })
                    }

});